/**
 * 
 */
package co.fitstart.admin.service;

import java.util.List;

import com.demo2do.core.support.Page;

import co.fitstart.entity.credit.product.CreditProduct;
import co.fitstart.entity.credit.product.CreditProductType;

/**
 * @author houtao
 *
 */
public interface CreditProductService extends DataService<CreditProduct> {
    
    /**
     * 
     * @param type
     * @param page
     * @return
     */
    public List<CreditProduct> list(CreditProductType type, Page page);

    /**
     * 
     * @param product
     * @param type
     */
    public void stick(CreditProduct product, CreditProductType type);
    
    /**
     * 
     * @param product
     * @param type
     */
    public void unStick(CreditProduct product, CreditProductType type);
    
    /**
     * 
     * @param latestProduct
     * @return
     */
    public void create(CreditProduct product, Long operator);
}
